from .base import MyBaseModelView


class UserModelView(MyBaseModelView):
    column_list = (
        "id",
        "telegram_id",
        "username",
        "created_at",
    )

    form_excluded_columns = ("id", "lang_code", "updated_at")

    column_searchable_list = ("telegram_id", "username")

    column_filters = ("telegram_id", "username", "created_at")

    column_labels = {
        "status": "Статус",
        "telegram_id": "ID в телеграме",
        "username": "Юзернейм в телеграме",
        "lang_code": "Язык",
        "was_created": "Дата создания",
        "created_at": "Дата регистрации",
    }

    column_default_sort = ("id", True)
